package de.lns.entities.mobs;

import java.nio.FloatBuffer;

import de.lns.entities.ai.Standardmobai;
import de.lns.level.Circle;
import de.lns.render.ModelFactory;

public class Troll extends Mob {
	private static double radius = 16;
	private static String texturepath="entities/MobTroll.png";
	private static FloatBuffer mesh=ModelFactory.genRectMesh((float)radius*2, (float)radius*2);
	private static int textureid;
	static{
		textureid = de.lns.render.TextureLoader.loadTexture(texturepath);
	}
	/**
	 * 
	 * @param posX The SpawnXPostion of the Troll
	 * @param posY The SpawnYPostion of the Troll
	 * @param path The path of this Troll
	 */
	public Troll(double posX, double posY, int[] path) {
		super(posX, posY,radius, path, 30, 320);
		setArmor(20, 25, 20, 5, 15, 15);
		this.setAi(new Standardmobai(this));	
	}
	@Override
	public FloatBuffer getMesh(){
		return mesh;
	}
	public int getTextureID(){
		return textureid;
	}
}
